﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MailDetail.aspx.cs" Inherits="MsgMng_MailDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>消息详情</title>
  <style>
    #footer { text-align: center; }
  </style>
</head>
<body>
  <form id="form1" runat="server">
  <asp:DetailsView ID="dvMessage" runat="server" AutoGenerateRows="False" Height="226px"
    Width="462px" GridLines="None">
    <Fields>
      <asp:BoundField HeaderText="消息主题：" DataField="MessTitle" />
      <asp:TemplateField HeaderText="重要程度：">
        <ItemTemplate>
          <asp:Label ID="Label1" runat="server" Text='<%# Eval("MessageType.MessageTypeId") %>'></asp:Label>
        </ItemTemplate>
        <ItemStyle ForeColor="Red" />
      </asp:TemplateField>
      <asp:TemplateField HeaderText="消息内容：">
        <ItemTemplate>
          <asp:TextBox ID="TextBox1" ReadOnly="true" runat="server" Height="147px" 
            TextMode="MultiLine" Width="355px" Text='<%# Eval("MessContent") %>'></asp:TextBox>
        </ItemTemplate>
      </asp:TemplateField>
      <asp:TemplateField HeaderText="发件人：">
        <ItemTemplate>
          <asp:Label ID="Label2" runat="server" Text='<%# Eval("User.UserName") %>'></asp:Label>
        </ItemTemplate>
      </asp:TemplateField>
      <asp:BoundField HeaderText="发送时间：" DataField="MessCreateTime" />
    </Fields>
  </asp:DetailsView>
  <div id="footer">
    <input type="button" onclick="window.close();" value="关闭" />
  </div>
  </form>
</body>
</html>
